<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Mail
 *
 * @author genjie.wang
 */
class App_Mail 
{
    
    public $config = array(
				'auth'=>'login', 
				'username'=>'wanggenjie@foxmail.com', 
				'password'=>'578320034'
			    ); 
    
    public $mail, $transport;
    
    public function __construct(){
	$this->mail = new Zend_Mail('UTF-8');
	$this->transport = new Zend_Mail_Transport_Smtp('smtp.qq.com', $this->config);
    }
    
    public function setting(){
	$this->mail->setFrom('wanggenjie@foxmail.com', '我是发件人');

	$this->mail->addTo('578320034@qq.com', '收件人一');

	$this->mail->addTo('154700396@qq.com', '收件人二');
	
	if (!is_array($email)) {
	    
	}

	$this->mail->setSubject('这是一封测试邮件，你可以忽略此邮件的存在');

	$this->mail->setBodyHtml('测试HTML');

    }
    
    public function sendmail(){
	return $this->mail->send($this->transport);
    }
}


